﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace APILibrary
{
    public class Interview
    {
        /// <summary>
        /// 数据唯一标识符
        /// </summary>
        [Key]
        [Required]
        public Guid ID { get; set; }
        /// <summary>
        /// enum:
        /// 0：空巢老人
        /// 1：贫困人口
        /// 2：慢性病人口
        /// 3：正常家庭
        /// </summary>
        [Required]
        public int Postion { get; set; }
        /// <summary>
        /// 薪资
        /// </summary>
        [Required]
        public float Salary { get; set; }
        /// <summary>
        /// 名字
        /// </summary>
        [Required]
        public string Name { get; set; }
        /// <summary>
        /// 年龄
        /// </summary>
        [Required]
        public int Age { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        [Required]
        public bool Gender { get; set; }
        /// <summary>
        /// 出生日期
        /// </summary>
        [Required]
        public DateTime BirthDate { get; set; }
        /// <summary>
        /// 18位身份证号码
        /// </summary>
        [Required]
        [StringLength(20)]
        public string? IDNumber { get; set; }
        /// <summary>
        /// 地区
        /// </summary>
        [Required]
        [StringLength(20)]
        public string? Diqu { get; set; }
        /// <summary>
        /// 家庭人口
        /// </summary>
        [Required]
        [StringLength(20)]
        public string? Jiat { get; set; }
    }
}
